package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 通知收藏表
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-30
 */
@Getter
@Setter
@Schema(name = "Noticecollect", description = "通知收藏表")
public class Noticecollect implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "通知收藏id")
    @TableId(value = "notice_collect_id", type = IdType.AUTO)
    private Integer noticeCollectId;

    @Schema(description = "被通知id")
    private Integer notifiedId;

    @Schema(description = "收藏用户id")
    private Integer userId;

    @Schema(description = "收藏内容")
    private String noticeCollectContent;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime  createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destroyTime;

    @Schema(description = "有效字段")
    private Integer tip;

    @Schema(description = "评论还是文章类型")
    private Byte noticeCollectType;

    @Schema(description = "公共id")
    private Integer communalId;
}
